package cn.hua.douban.room.service.impl;

import cn.hua.douban.room.utils.PageUtils;
import cn.hua.douban.room.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.hua.douban.room.dao.RoomDao;
import cn.hua.douban.room.entity.RoomEntity;
import cn.hua.douban.room.service.RoomService;


/**
 * @author hua
 */
@Service("roomService")
public class RoomServiceImpl extends ServiceImpl<RoomDao, RoomEntity> implements RoomService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<RoomEntity> page = this.page(new Query<RoomEntity>().getPage(params), new QueryWrapper<RoomEntity>());

        return new PageUtils(page);
    }


}
